<template>
 <GlobalHeader
    :text="t('mainLeft.hostOperatingParameters')"
    xh="CW6250C1360DF7"
    xlh="2522L000025"
    :hour="allData.left_main?.zfdjljyxsj?.currentValue"
    :path="`/pages/rhost/rhost?props=${0}`"
  ></GlobalHeader>
  <equipmentmain v-if="props.id == 0" ></equipmentmain>
  <wd v-if="props.id == 5" :id ="1"></wd> 
  <yl v-if="props.id == 2" :id ="2"></yl> 
  <pw v-if="props.id == 3" :id ="3"></pw> 
  <cz v-if="props.id == 4" :id ="4"></cz> 
</template>

<script setup>
import {
    ref,
    reactive,
    onMounted,
    onUnmounted,
    watch,
    markRaw,
    inject
} from 'vue';
import GlobalHeader from "@/components/layout/GlobalHeader.vue";
import equipmentmain from "@/components/equipment/equipmentmain.vue";
import wd from "@/components/equipment/wd.vue"
import yl from "@/components/equipment/yl.vue"
import pw from "@/components/equipment/pw.vue"
import cz from "@/components/equipment/cz.vue"
import { useI18n } from 'vue-i18n'; // 导入 useI18n
const props = defineProps({
  id: Number,
});
let allData = inject("allData");
const { t } = useI18n(); // 使用 useI18n 获取 t 方法
</script>

<style scoped></style>